<template>
    <div>
        <h3>会员等级列表</h3>
        <table class="table table-bordered">
            <tbody>
                <tr class="bg-primary">
                    <td>会员等级编号</td>
                    <td>会员等级名称</td>
                    <td>创建时间</td>
                    <td>操作</td>
                </tr>
                <tr v-for="item in list1" :key="item.Id">
                    <td>{{ item.Id }}</td>
                    <td>{{ item.LvName }}</td>
                    <td>{{ moment(item.CreateTime).format("YYYY-MM-DD") }}</td>
                    <td>
                        
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</template>

<script setup lang="ts">
import { ref, reactive, onMounted } from 'vue';
import axios from 'axios';
import moment from 'moment';
import { useRoute, useRouter } from 'vue-router';
const Route = useRoute();
const Router = useRouter();

let list1: any = ref([]);
onMounted(() => {
    getlist();
})
const getlist = () => {
    axios({
        url: '/api/VIP/GetLvInfo',
        method: 'get',
        params: list1
    })
        .then((res) => {
            console.log(res);
            list1.value = res.data;
        })
        .catch((err) => {
            console.log(err);
        })
}
</script>

<style scoped></style>